import BasicLayout from '@/layouts/basic-layout';

const meta = {
    auth: true
};

const pre = 'finance-';

export default {
    path: '/finance',
    name: 'finance',
    redirect: {
        name: `${pre}empSalary`
    },
    meta,
    component: BasicLayout,
    children: [
        {
            path: 'empSalary',
            name: `${pre}empSalary`,
            meta: {
                ...meta,
                title: '员工工资条管理'
            },
            component: () => import('@/pages/finance/empSalary')
        }, {
            path: 'empSalary/empSalary-add',
            name: `empSalary-add`,
            meta: {
                ...meta,
                title: '员工工资-新增'
            },
            component: () => import('@/pages/finance/empSalary/empSalary-add')
        },
        {
            path: 'empSalary/empSalary-detail',
            name: `empSalary-detail`,
            meta: {
                ...meta,
                title: '员工工资-详情'
            },
            component: () => import('@/pages/finance/empSalary/empSalary-detail')
        },

        {
            path: 'reimbursement',
            name: `${pre}reimbursement`,
            meta: {
                ...meta,
                title: '费用报销管理'
            },
            component: () => import('@/pages/finance/reimbursement')
        },
        {
            path: 'reimbursement/reimbursement-add',
            name: `reimbursement-add`,
            meta: {
                ...meta,
                title: '新增'
            },
            component: () => import('@/pages/finance/reimbursement/reimbursement-add')
        }, {
            path: '/reimbursement/yes-detail',
            name: `reimbursement-yesDetail`,
            meta: {
                ...meta,
                title: '审核详情'
            },
            component: () => import('@/pages/finance/reimbursement/yes-detail')
        }, {
            path: '/reimbursement/no-detail',
            name: `reimbursement-noDetail`,
            meta: {
                ...meta,
                title: '申请详情'
            },
            component: () => import('@/pages/finance/reimbursement/no-detail')
        }, {
            path: '/finance/reimbursement/goReview',
            name: `reimbursement/goReview`,
            meta: {
                ...meta,
                title: '审核'
            },
            component: () => import('@/pages/finance/reimbursement/goReview')
        }, {
            path: 'salaryForecast',
            name: `${pre}salaryForecast`,
            meta: {
                ...meta,
                title: '薪资预测'
            },
            component: () => import('@/pages/finance/salaryForecast')
        },
    ]
};
